<?php


class BasketLinkGen extends LinkGen {
	
	public function link($id, $additionalParams = array()){
		$query = Doctrine_Query::create()
							  ->select('id')
							  ->from('Structure')
							  ->where('parameter = ? AND lang = ?', array('basket', $additionalParams['lang']));
		$nodeId = $query->fetchOne()->getId();

		
		
		$link = LinkGen::getInstance(LinkGen::STRUCTURE)->link($nodeId);
		return $link;
	}

	protected function init(){

	}

	public function linkParts($id, $additionalParams = array()){

	}
}